package com.loveedu.service.impl;

import com.loveedu.dao.Userdao;
import com.loveedu.service.IUserService;
import com.loveedu.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2018\4\24 0024.
 */
@Service("UserService")
public class UserServiceImpl implements IUserService {
    @Autowired
    Userdao userDao;

    @Override
    public List<User> findAllUser() {
        return userDao.findAllUser();
    }

    @Override
    public void createUser(User user) {
        user.setUsername("huang");
        userDao.createUser(user);
    }
}
